<style>
    .inputDialog{width:250px;height:auto;background:#d6d6d6;position:absolute;left:63px;top:39px;padding-bottom:10px;z-index:10000;}
    .inputDialog ul{float:right;margin-top:15px;margin-right:50px;}
</style>
<div class="SipeiMain_r fr ">
    <h2 class="clearfix fonts_18 height45 fontc_444"><?php echo $this->title; ?></h2>
    <div class="ui_dialog">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
    'action' => Yii::app()->createUrl('/nojoin_rule/detail/add'),
    'method' => 'POST',
    'id' => 'searchForm'));
    ?>
    <input type="hidden" id="addwheres" name="info[addwheres]" value="" />
	<input type="hidden" id="addwheres2" name="info[addwheres2]" value="" />
    <input type="hidden" id="id" name="info[join_id]" value="<?php echo $serchs['id']; ?>" />
    <div class="clearfix back_bgf border_3 border_c pr30 pl30 pt20 pb20 height32 fontc_666">
        <ul class="clearfix">
            <li class="fl pt10 pr30 pb10 SipHint" style="position:relative;">
                <span class="fl pr3" style="width:60px;">学生范围：</span>
                <input type="text" id="range" name="info[range]" value="" class="fl this_dialog pt6 pr9 pb6 pl9 border_3 border_c fontc_666 w100" readonly/>
                <div class="formValidator_tip" style="margin-left:60px;width:120px;">
                    <p id="rangeTip" ></p>
                </div>
                <div class="inputDialog" style="display:none;">
                    <ul>
                        <li style="clear:both;">
                            <span class='fl' style="width:64px;text-align:right;">栏位选择：</span>
                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                <span class="fl select_shelter select_shelter2">
                                    <select id="type1" class="fl fontc_666 lanwei" onchange="valuechange(this.value, $(this))">
                                     <option value="">全部</option>
                                        <?php foreach ($serch['rowconfig'] as $k=>$v):?>
                                        <option value="<?php echo $k."-".$v;?>"><?php echo $v;?></option>
                                        <?php endforeach; ?>
                                    </select>
                                </span>
                            </span>
                        </li>
                        <li style="clear:both;display:none;" class="confirm">
                            <span class='fl' style="width:64px;text-align:right;">确认：</span>
                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                <span class="fl select_shelter select_shelter2">
                                    <select class="fl fontc_666 caozuo" id="confirm1">		            
                                        <option value="T">是</option>		            
                                        <option value="F">否</option>
                                    </select>
                                </span>
                            </span>
                        </li>
                        <li style="clear:both;display:none;" class="sex">
                            <span class='fl' style="width:64px;text-align:right;">性别：</span>
                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                <span class="fl select_shelter select_shelter2">
                                    <select class="fl fontc_666 caozuo" id="sex">		            
                                        <option value="1">男</option>		            
                                        <option value="2">女</option>
                                    </select>
                                </span>
                            </span>
                        </li>
                        <li style="clear:both;">
                            <span class='fl' style="width:64px;text-align:right;">操作符：</span>
                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                <span class="fl select_shelter select_shelter2">
                                    <select class="fl fontc_666" id="where1"></select>
                                </span>
                            </span>
                        </li>
                        <li style="clear:both;">
                            <span class='fl' style="width:64px;text-align:right;">值：</span>
                            <input type="text" id="value1" class="zhi pt6 pr9 pb6 pl9 border_3 border_c fontc_666" style="width:93px;"  />
                        </li>
                    </ul>
                    <div>
                        <input type="button" value="确定" onclick="addrange()" class="an_ok b_a_n border_3 back_bgfyg cursor w80 height32 fontc_FFF fonts_12" style="margin-left:40px; margin-top:10px;" />
                        <input type="button" value="取消" class="an_no b_a_n border_3 back_bgb cursor w80 height32 fontc_FFF fonts_12" />
                    </div>
                </div>
            </li>
            <li class="fl pt10 pr30 pb10 SipHint" style="position:relative;">
                <span class="fl pr3" style="width:60px;">筛选条件：</span>
                <input type="text" id="where" name="info[where]" value="" class="fl this_dialog pt6 pr9 pb6 pl9 border_3 border_c fontc_666 w100" readonly/>
                <div class="formValidator_tip" style="margin-left:60px;width:120px;">
                    <p id="whereTip" ></p>
                </div>
                <div class="inputDialog" style="display:none;">
                    <ul>
                        <li style="clear:both;">
                            <span class='fl' style="width:64px;text-align:right;">栏位选择：</span>
                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                <span class="fl select_shelter select_shelter2">
                                    <select id="type2" class="fl fontc_666 lanwei lwval">
                                        <option value="">全部</option>
                                        <?php foreach ($serch['whereconfig'] as $k=>$v):?>
                                        <option value="<?php echo $k."-".$v;?>" title="<?php echo $v;?>"><?php echo $v;?></option>
                                        <?php endforeach;?>
                                    </select>
                                </span>
                            </span>
                        </li>
                        
                        <li style="clear:both;display:none;" class="confirm">
                            <span class='fl' style="width:64px;text-align:right;">确认：</span>
                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                <span class="fl select_shelter select_shelter2">
                                    <select class="fl fontc_666 caozuo" id="confirm">		            
                                        <option value="T">是</option>		            
                                        <option value="F">否</option>
                                    </select>
                                </span>
                            </span>
                        </li>
                        <li style="clear:both;">
                            <span class='fl' style="width:64px;text-align:right;">操作符：</span>
                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                <span class="fl select_shelter select_shelter2">
                                    <select class="fl fontc_666 caozuo" id="where2">		            
                                        <option value=">-大于">大于</option>
										<option value="=>-大于">大于等于</option>				
                                        <option value="=-等于">等于</option>
                                        <option value="<-小于">小于</option>
										<option value="<=-小于">小于等于</option>
                                        <option value="!=-不等于">不等于</option>
                                    </select>
                                </span>
                            </span>
                        </li>
                        <li style="clear:both;">
                            <span class='fl' style="width:64px;text-align:right;">值：</span>
                            <input type="text" id="value2" class="zhi pt6 pr9 pb6 pl9 border_3 border_c fontc_666" style="width:93px;" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" />
                        </li>
                        <li style="clear:both;">
                            <span class='fl' style="width:64px;text-align:right;">增加条件：</span>
                            <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3" style="background:#fff;">
                                <span class="fl select_shelter select_shelter2">
                                    <select class="fl fontc_666" id="add2">	
                                        <option value="">增加条件</option>	            
                                        <option value="AND-并且">并且</option>
                                        <option value="OR-或者">或者</option>
                                    </select>
                                </span>
                            </span>
                        </li>
                    </ul>
                    <div>
                        <input type="button" value="确定" onclick="addwhere()"class="an_ok b_a_n border_3 back_bgfyg cursor w80 height32 fontc_FFF fonts_12" style="margin-left:40px; margin-top:10px;" />
                        <input type="button" value="取消" onclick="on_load()" class="an_no b_a_n border_3 back_bgb cursor w80 height32 fontc_FFF fonts_12" />
                    </div>
                </div>
            </li>
            <li class="fl pt10 pr30 pb10">
                <span class="fl pr8">是否生效</span>
                <input type="checkbox" name="info[status]"  checked="checked" class="fl mt9" style="_margin-top:5px;*margin-top:5px;" value="1"/>
            </li>
            <li class="fr pt10 pb10">
                <input type="submit" value="新增"  name="submit" class="b_a_n border_3 back_bgfb w80 height32 fontc_FFF fonts_12 cursor" />
            </li>
        </ul>
        <ul class="clearfix">
            <li class="fl pt10 pr30 pb10">
                <span class="fl" style="width:64px;">备注：</span>
                <textarea class="col3 pt6 pr10 pb6 pl10 border_c border_3 fontc_666" name="info[remark]" ></textarea>
            </li>
        </ul>
    </div>    
    <?php
    $this->endWidget(); ?>
    </div>
    <div class="clearfix back_bgf border_c mt15 pt20 pb20">
        <table class="height40">
            <thead class="back_bgf5 fontc_666">
                <tr>
                    <th width="80" align="center" class="m_hr_t m_hr_b">序号</th>
                    <th width="218" align="center" class="m_hr_t m_hr_b pl10">学生范围</th>
                    <th width="320" align="center" class="m_hr_t m_hr_b pl10">筛选条件</th>
                    <th width="60" align="center" class="m_hr_t m_hr_b">是否生效</th>
                    <th width="100" align="center" class="m_hr_t m_hr_b">操作</th>
                </tr>
            </thead>
            <tbody class="fontc_444">
                <?php if (!empty($data)): ?>
                    <?php foreach ($data as $value): ?>
                        <tr>
                            <td align="center" class="m_hr_b"><?php echo $value['id']; ?></td>
                            <td align="center" class="m_hr_b pl10 height20 pt8 pb8"><?php echo $value['range']; ?></td>
                            <td align="center" class="m_hr_b pl10 height20 pt8 pb8"><?php echo $value['where']; ?></td>
                            <td align="center" class="m_hr_b">
                                <input type="checkbox" <?php echo $value['status'] == 1 ? 'checked=checked' : ''; ?>  disabled=""/>
                            </td>
                            <td align="center" class="m_hr_b">
                                <p class="clearfix pl30" style="height:15px;">
                                    <img src="/themes/default/images/Sipei/edit.png" title="编辑" class="mr10 cursor" onclick="update(<?php echo $value['id']; ?>)" />
                                    <img src="/themes/default/images/Sipei/delate.png" title="删除" class="cursor" onclick="set_ok(<?php echo $value['id']; ?>)" />
                                </p>
                            </td>
                        </tr>
                    <?php endforeach; ?>
                <?php else: ?>
                    <tr>
                        <td colspan="5"><h1 align="center">暂无数据</h1></td>
                    </tr>
                <?php endif; ?>
            </tbody>
        </table>
        <?php $this->renderPartial('//partial/partial_pager', array('pages' => $pages, "url" => $pageUrl)); ?>
    </div>
</div>
<script>
function set_ok(id) {
	$.dialog.confirm('确定删除吗', function() {
		location.href = "<?php echo $this->createUrl("delete") ?>/id/" + id;
	});
}
function update(id) {
	api = $.dialog({
		id: 'testID2',
		lock: true,
		padding: 0,
		fixed: true,
		title: "编辑",
		width: 480,
		height: 430,
		max: false,
		min: false
	});
	$.post('/nojoin_rule/detail/update', {id: id,time:new Date()}, function(html) {
		api.content(html);
	});
}
$(function() {
	$(".checkboxs").click(function() {
		var checkedS = $(this).attr("checked");
		if (checkedS) {
			$(".checkbox").attr("checked", true);
		} else {
			$(".checkbox").removeAttr("checked");
		}
	})
})
$(function() {
	$.formValidator.initConfig({formID:"searchForm",theme:"126",submitOnce:false,
		onError:function(msg,obj,errorlist){
			$("#errorlist").empty();
			$.map(errorlist,function(msg){
				$("#errorlist").append("<li>" + msg + "</li>");
			});
		},
		ajaxPrompt : '有数据正在异步验证，请稍等...'
	});
	/*学生范围验证*/
	$("#range").formValidator({
		onShowText:"",
		onShow:"",
		onFocus:"",
		onCorrect:"已选择"
	}).inputValidator({
		min:1,
		onError:"请选择学生范围"
	});
	
	/*学生范围验证*/
	$("#where").formValidator({
		onShowText:"",
		onShow:"",
		onFocus:"",
		onCorrect:"已选择"
	}).inputValidator({
		min:1,
		onError:"请选择筛选条件"
	});
	$(".this_dialog").focus(function() {
		$(this).nextAll(".inputDialog").show();
	});
	$(".inputDialog .an_no").click(function() {
		$(this).parents(".inputDialog").hide();
	});
	$(".inputDialog .an_ok").click(function() {
		$(this).parents(".inputDialog").hide().prevAll(".this_dialog").blur();
	});
});

//学生范围条件添加和转化
function addrange() {

	var type1 = $('#type1').val();
	if (type1 != '全部') {
		var type1strs = new Array();
		type1strs = type1.split("-");
	}
	var where1 = $('#where1').val();
	if (where1 != null) {
		var where1strs = new Array();
		where1strs = where1.split("-");

	}
	var value1 = $('#value1').val();
	if ($.trim(type1) == '') {
		$("#range").val('全部');
		$("#addwheres").val(1);
		
	} else {
		if (type1strs[0] != '') {
			var rlist = type1strs[1];  //栏位名称
			var tlist = ' `'+type1strs[0]+'` ';  //栏位名称转化		   字段
			if(type1strs[0]=='student_sex'){  //性别的值存储
				
				var rsex = $("#sex").val();
				if(rsex==1){
					rlist += ' '+ '男';
				}else{
					rlist += ' '+ '女';
				}
				$("#range").val(rlist);
				
				tlist += ' = '+ rsex;
				$("#addwheres").val(tlist);

			}else if(type1strs[0]=='statis' || type1strs[0]=='nature'){  //学校性质
				
				var sVal = $("#confirm1").val();
				$("#range").val(rlist+' '+sVal);
				
				tlist += " = '"+sVal+"' ";
				$("#addwheres").val(tlist);

			}else{
				var value1 = $( "#value1" ).val();
				
                if(!value1){
                    value1 = "";
                }
				/*if( value1 == "" ){
					alert( "请输入值" );
					$("#addwheres").val("");
					$("#range").val("");
					return false;
				}*/
	
					if(where1strs[1]){
						
						if(value1){
							rlist += ' '+where1strs[1]; //栏位条件
							rlist += ' \''+value1+'\''; //栏位值
						}else{
							rlist += " 为空";
						}
					}
				
					$("#range").val(rlist);
					if(where1strs[0]){
						if(value1 != ""){
							tlist += ' '+where1strs[0];  //栏位条件转化
							if(where1strs[0] == "IN" || where1strs[0] == "NOT IN"){
								
									var value1 = value1.replace(new RegExp(/(、)/g),',');
									var value1 = value1.replace(new RegExp(/(，)/g),',');
									var value1 = value1.replace(new RegExp(/(,)/g),',');
									
									
									value1 =  value1.replace(new RegExp(/([\\%'"></])/g),'\\$1')
									if(value1.indexOf(",") >= 0){
										var value1 = value1.replace(/(^,+)/,"").replace(/,+$/,"");
										var array = value1.split(",");
										var value1 = '';
										for (var i=0 ; i< array.length ; i++){
											if(array[i] != ''){
												value1 +=  "'"+array[i]+"',";  //栏位值
											}
										}
										var value1 = value1.replace(/,+$/,"");
										tlist += "("+value1+") ";  //栏位值
									}else{
										tlist += " ('"+value1+"')";  //栏位值
									}
							
							}else{
								tlist += " '"+value1+"'";	  //栏位值
							}
						}else{
							tlist += " IS NULL";
						}
					}
					$("#addwheres").val(tlist);
			}
		}
	}
}

var addHTML = "<ul>" + $( ".inputDialog:eq(1) ul" ).html() +"</ul>";
function addwhere() {
	//var addwheres = $("#addwheres").val();
	//if(addwheres.indexOf("AND") >= 0){
	//	addwheres = addwheres.substr(0,addwheres.indexOf("AND"));
	//}
	/*
	if( $(".confirm:hidden").length <= 0 ){  //是否统计分数判断
		var lwval = $(".lwval").val();
		var lwArr = lwval.split("-");
		if(lwArr[1]){
	
			$("#where").val( lwArr[1]+' = '+$("#confirm").val() );
		}
		
		if(lwArr[0]){
		
			$("#addwheres").val(addwheres + '' +lwArr[0]+' = "'+$("#confirm").val()+'" ' );
		}
		return false;
	}
	*/
	var type2 = $(".inputDialog:eq(1) ul:eq(0)").find('#type2').val();
	var value2 = $(".inputDialog:eq(1) ul:last").find('#value2').val();
	var where = $("#where").val(),
		//range = $("#").val(),
		data = [],
		ulLen = $( ".inputDialog:eq(1) > ul" ).length;
	if( type2 != "" && value2 == "" && $( ".inputDialog:eq(1) > ul:last li.confirm:visible" ).length < 1 ){
		alert( "请输入值" );

		return false;
	}
	var whereS = '',
		inputVal = "";

	/* if(range==''){
		alert('先选择学生范围再选择筛选条件');
		$("#where").val( "" );
		$("#addwheres").val( addwheres );
		return false;
	}else{ */
		
		if(type2==''){
			inputVal = "全部";
			$("#addwheres2").val(1);
		}else{
			/* if(addwheres != ''){
				addwheres += " AND ";
			} */
			for( var i=0; i<ulLen; i++ ){
				var thisUl = $( ".inputDialog:eq(1) > ul" ).eq(i);
				if( thisUl.find( ".confirm:visible" ).length > 0 ){
					data.push({
						val : {
							type : thisUl.find( "#type2" ).val(),
							confirm : $.trim(thisUl.find( "#confirm option:selected" ).text())
					  	},
					  	strs : {
					  		typeStrs : thisUl.find( "#type2" ).val().split("-"),
					  		confirmStrs : thisUl.find( "#confirm" ).val()
						}
					});

				}else{
					data.push({
						val : {
							type : thisUl.find( "#type2" ).val(),
							where : thisUl.find( "#where2" ).val(),
							value : thisUl.find( "#value2" ).val(),
							add : thisUl.find( "#add2" ).val()
					  	},
					  	strs : {
					  		typeStrs : thisUl.find( "#type2" ).val().split("-"),
							whereStrs : thisUl.find( "#where2" ).val().split("-"),
							valueStrs : thisUl.find( "#value2" ).val(),
							addStrs : thisUl.find( "#add2" ).val().split("-")
						}
					});
				}
			}
			
			$.each(data,function(i,item){
				
				var thisUl = $( ".inputDialog:eq(1) > ul" ).eq(i);
				if( thisUl.find( ".confirm:visible" ).length > 0 ){
					whereS += " `"+ item.strs.typeStrs[0] + "` = "+ "'"+item.strs.confirmStrs+"'";

					inputVal += " "+ item.strs.typeStrs[1] + " "+ item.val.confirm;
				}else{
					if( !item.strs.addStrs[0] ){
						item.strs.addStrs[0] = "";
						item.strs.addStrs[1] = "";
					}
					whereS += ' `'+ item.strs.typeStrs[0] + '`'+ item.strs.whereStrs[0] + " "+ "'"+item.strs.valueStrs+"'" + " "+ item.strs.addStrs[0];
					inputVal += ' '+ item.strs.typeStrs[1] + ' '+ item.strs.whereStrs[1] + " "+ item.strs.valueStrs + " "+ item.strs.addStrs[1];
				}
			});	
			$("#addwheres2").val( whereS);
		}
	//}
	$("#where").val( inputVal );
	
	$(".inputDialog:eq(1) ul:eq(0)").nextAll("ul").remove();
	$(".inputDialog:eq(1) ul:eq(0) li.confirm").hide().nextAll().show();
	$(".inputDialog:eq(1) ul:eq(0) select").removeAttr("disabled").find("option:eq(0)").attr( "selected",true );
	$(".inputDialog:eq(1) ul:eq(0) input").removeAttr("disabled").val("");
}

$( "#add2" ).change(function(){
	var val = $(this).val(),$this = $(this),
		_thisUL = $(this).parent().parent().parent().parent();
	if( val=="AND-并且" || val=="OR-或者" ){

		if( _thisUL.find( "#type2" ).val() == "" ){
			alert( "您的栏位选择的是全部，不能继续添加条件了" );
			$(this).find( "option:eq(0)" ).attr("selected",true);
			return false;
		}
		
		if( _thisUL.find( "#value2" ).val() == "" ){
			alert( "值不能为空" );
			$(this).find( "option:eq(0)" ).attr("selected",true);
			return false;
		}
		$( ".inputDialog:eq(1) > div" ).before( addHTML );
		$( ".inputDialog:eq(1) > ul:last" ).find( "#type2" ).find( "option:eq(0)" ).remove();
		$( ".inputDialog:eq(1) > ul:last" ).find(".confirm:last").hide().nextAll().show();

		$(this).attr( "disabled","disabled" );
		_thisUL.find( "select,input" ).attr( "disabled","disabled" );
		$( this ).parents( ".inputDialog" ).children( "ul:last" ).find( "#add2" ).change(function(){
			var _thisUL = $(this).parent().parent().parent().parent();
			if( _thisUL.find( "#type2" ).val() == "" ){
				alert( "您的栏位选择的是全部，不能继续添加条件了" );
				$(this).find( "option:eq(0)" ).attr("selected",true);
				return false;
			}
			if( _thisUL.find( "#value2" ).val() == "" ){
				alert( "值不能为空" )
				$(this).find( "option:eq(0)" ).attr("selected",true);
				return false;
			}
			var val = {
					type : _thisUL.find('#type2').val(),
					where : _thisUL.find('#where2').val(),
					value : _thisUL.find('#value2').val(),
					add : _thisUL.find('#add2').val()
				};
			judgment( val,_thisUL,0,$this )
		})
	}
	
})

function judgment( thisVal,thisUL,num,$this ){
	
	var ulLen = thisUL.parent().find( "ul" ).length;
	if( num == parseInt(ulLen)-1){
		thisUL.find( "select,input" ).attr( "disabled","disabled" );
		$this.change();
		return true;
	}
	var _thisVal = {
			type : thisUL.parent().find( "ul" ).eq(num).find('#type2').val(),
			where : thisUL.parent().find( "ul" ).eq(num).find('#where2').val(),
			value : thisUL.parent().find( "ul" ).eq(num).find('#value2').val(),
			add : thisUL.parent().find( "ul" ).eq(num).find('#add2').val()
	}
	if( _thisVal.type == thisVal.type && _thisVal.where == thisVal.where && _thisVal.value == thisVal.value  ){
		alert( "条件语句不能重复，亲重新填写" )
		return false;
	}

	judgment( thisVal,thisUL,num+1,$this )
}
 
//选择值
function valuechange(type, id) {
	var typestrs = new Array();
	typestrs = type.split("-");

	if( type == "statis-是否统计" || type == "nature-学校性质" ){
		id.parents(".inputDialog").find(".confirm:last").show().nextAll().hide();
		return false;
	}else{
		id.parents(".inputDialog").find(".confirm:last").hide().nextAll().show();
	}
	if( type == "student_sex-性别" ){
		id.parents(".inputDialog").find(".sex").show().nextAll().hide();
		return false;
	}else{
		id.parents(".inputDialog").find(".sex").hide().nextAll().not( ".confirm" ).show();
	}

	var newHtml = "", where1='', typesText = ",姓名,准考号,城市代码,城市简称,学校代码,学校名称,班级名称,科别代码,科别名称",typesText1=",性别,是否统计,学校性质";
	if( type == ""  ){
		where1="";
	}else if( typesText1.indexOf( typestrs[1] ) > 0  ){
		where1="";
	}else if( typesText.indexOf( typestrs[1] ) > 0 ){
		where1="<option value='=-等于'>等于</option>";
		where1 += "<option value='IN-包含'>包含</option>";
		where1 += "<option value='NOT IN-不包含'>不包含</option>";
	}else{
		where1 = "<option value='=-等于'>等于</option>";
		where1 += "<option value='>-大于'>大于</option>";
		where1 += "<option value='<-小于'>小于</option>";
		where1 += "<option value='!=-不等于'>不等于</option>";
		where1 += "<option value='IN-包含'>包含</option>";
		where1 += "<option value='NOT IN-不包含'>不包含</option>";
	}
	$("#value1").val("");
	$("#where1").html(where1);
}

$( "#type2" ).live("change",function(){
	var vals = $(this).val();
	if(vals=="statis-是否统计分数" || vals == "score-是否统计"){
		$(this).parents(".inputDialog").find(".confirm:last").show().nextAll().hide();
	}else{
		$(this).parents(".inputDialog").find(".confirm:last").hide().nextAll().show();
	}
});


function on_load(){
	window.location.reload();
}

</script>